<!DOCTYPE html>
<html>
<head>
  <taglib name="app\portal\taglib\Portal"/>
  <include file="public@function"/>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width" />
  <meta name="author" content="www.yanshisan.cn" />
  <meta name="robots" content="all" />
  <link rel="shortcut icon" type="image/x-icon" href="__TMPL__/public/assets/image/icon.png">
  <block name="seo">
  </block>
  <link rel="stylesheet" href="__TMPL__/public/assets/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="__TMPL__/public/assets/layui/css/layui.css" />
  <link rel="stylesheet" href="__TMPL__/public/assets/css/master.css" />
  <link rel="stylesheet" href="__TMPL__/public/assets/css/gloable.css" />
  <link rel="stylesheet" href="__TMPL__/public/assets/css/nprogress.css" />
  <link rel="stylesheet" href="__TMPL__/public/assets/css/blog.css" />
  <link rel="stylesheet" href="__TMPL__/public/assets/css/page.css" />


</head>
<div class="header">
</div>
<header class="gird-header">
  <div class="header-fixed">
    <div class="header-inner">
      <a href="javascript:void(0)" class="header-logo" id="logo">Mr.WuXian</a>

      <nav class="nav navbar-nav navbar-nav-custom" id="nav">
        <!--<ul>
          <li><a href="/">首页</a></li>
          <li><a href="/portal/list.html">博客</a></li>
          <li><a href="/about.html">关于我</a></li>
          <li><a href="/portal/diary.html">日记</a></li>
          <li><a href="/link.html">友链</a></li>
          <li><a href="/star.html">导航</a></li>
        </ul>-->
        <ul id="main-menu">
        <navigation nav-id="1" root="">
          <navigationMenu root="li" class="menu-item menu-item-level-{$level}">
            <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">{$menu.name|default=''}</a>
          </navigationMenu>
        </navigation>
        </ul>
      </nav>


      <php>
        $user = session('user');
        if(empty($user)){
          $nickname = '';

      </php>
          <a href="{:cmf_plugin_url('QrcodeLogin://Index/qq')}" class="blog-user">
            <i class="fa fa-qq"></i>
          </a>
      <php>
        }else{
          $nickname = mb_substr($user['user_nickname'], 0, 2, 'UTF-8');
      </php>
          <a class="blog-user">
            Hi~ {$nickname}
          </a>

          <php>
        }
      </php>


      <a class="phone-menu">
        <i></i>
        <i></i>
        <i></i>
      </a>
    </div>
  </div>
</header>
<body>